package com.ruoyi.project.search.viewProductTypeAge.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.search.viewProductTypeAge.mapper.ViewProducttypeAgeMapper;
import com.ruoyi.project.search.viewProductTypeAge.domain.ViewProducttypeAge;
import com.ruoyi.project.search.viewProductTypeAge.service.IViewProducttypeAgeService;
import com.ruoyi.common.core.text.Convert;

/**
 * 物料类型库龄统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-23
 */
@Service
public class ViewProducttypeAgeServiceImpl implements IViewProducttypeAgeService 
{
    @Autowired
    private ViewProducttypeAgeMapper viewProducttypeAgeMapper;

    /**
     * 查询物料类型库龄统计
     * 
     * @param inClassName 物料类型库龄统计主键
     * @return 物料类型库龄统计
     */
    @Override
    public ViewProducttypeAge selectViewProducttypeAgeByInClassName(String inClassName)
    {
        return viewProducttypeAgeMapper.selectViewProducttypeAgeByInClassName(inClassName);
    }

    /**
     * 查询物料类型库龄统计列表
     * 
     * @param viewProducttypeAge 物料类型库龄统计
     * @return 物料类型库龄统计
     */
    @Override
    public List<ViewProducttypeAge> selectViewProducttypeAgeList(ViewProducttypeAge viewProducttypeAge)
    {
        return viewProducttypeAgeMapper.selectViewProducttypeAgeList(viewProducttypeAge);
    }

    /**
     * 新增物料类型库龄统计
     * 
     * @param viewProducttypeAge 物料类型库龄统计
     * @return 结果
     */
    @Override
    public int insertViewProducttypeAge(ViewProducttypeAge viewProducttypeAge)
    {
        return viewProducttypeAgeMapper.insertViewProducttypeAge(viewProducttypeAge);
    }

    /**
     * 修改物料类型库龄统计
     * 
     * @param viewProducttypeAge 物料类型库龄统计
     * @return 结果
     */
    @Override
    public int updateViewProducttypeAge(ViewProducttypeAge viewProducttypeAge)
    {
        return viewProducttypeAgeMapper.updateViewProducttypeAge(viewProducttypeAge);
    }

    /**
     * 批量删除物料类型库龄统计
     * 
     * @param inClassNames 需要删除的物料类型库龄统计主键
     * @return 结果
     */
    @Override
    public int deleteViewProducttypeAgeByInClassNames(String inClassNames)
    {
        return viewProducttypeAgeMapper.deleteViewProducttypeAgeByInClassNames(Convert.toStrArray(inClassNames));
    }

    /**
     * 删除物料类型库龄统计信息
     * 
     * @param inClassName 物料类型库龄统计主键
     * @return 结果
     */
    @Override
    public int deleteViewProducttypeAgeByInClassName(String inClassName)
    {
        return viewProducttypeAgeMapper.deleteViewProducttypeAgeByInClassName(inClassName);
    }
}
